@@ -83,7 +83,7 @@ describe Agents::WebsiteAgent do |
||
| 83 | 83 |
'url' => { 'foo' => 'bar' },
|
| 84 | 84 |
} |
| 85 | 85 |
expect(@checker).to_not be_valid |
| 86 |
- expect(@checker.errors_on(:base)).to include("When type is json, all extractions must have a path attribute.")
|
|
| 86 |
+ expect(@checker.errors_on(:base)).to include(/When type is json, all extractions must have a path attribute/) |
|
| 87 | 87 |
|
| 88 | 88 |
@checker.options['type'] = 'json' |
| 89 | 89 |
@checker.options['extract'] = {
|